package nsoft.swing.action;

import java.awt.AWTEvent;

import nsoft.util.BeanUtilities;
/**
 * 
 * @author blrsnl
 *
 * @param <T>
 * Common event for all types of AWTEvents.
 */
public class ApplicationEvent<T extends AWTEvent> {
	private T event;
	public ApplicationEvent(T event){
		this.event = event;
	}
	public T getEvent() {
		return event;
	}

	public void setEvent(T event) {
		this.event = event;
	}

	public void setComponentProperty(String property, Object value) {
		BeanUtilities.setProperty(event.getSource(), property, value);
	}
}
